/** * Author: Simon-Pierre Boucher * Contact: contact@spboucher.ai * Project: Hilmacorp.ai — Web Platform * File: app/[locale]/page.tsx * Description: Home page — hero, introduction, commitments, services overview, method strip, call to action */ import type { Metadata } from "next"; import Link from "next/link"; import Container from "@/components/Container"; import SectionHeading from "@/components/SectionHeading"; import { getMessages, isLocale, type Locale } from "@/lib/i18n"; export async function generateMetadata({ params, }: { params: Promise<{ locale: string }>; }): Promise { const { locale } = await params; if (!isLocale(locale)) return {}; const { meta } = getMessages(locale); return { title: { absolute: meta.home.title }, description: meta.home.description }; } export default async function HomePage({ params, }: { params: Promise<{ locale: string }>; }) { const { locale } = await params; const typedLocale = locale as Locale; const messages = getMessages(typedLocale); const { home, services } = messages; return ( <> {/* Hero */}
{/* Stats band */}
{[ { value: "8", label: home.statsProjects }, { value: "2", label: home.statsLanguages }, { value: "8", label: home.statsSteps }, ].map((stat) => (
{stat.value}
{stat.label}
))}
{/* Introduction */}

{home.introBody1}

{home.introBody2}

{home.introLinkAbout} → {home.introLinkFounders} →
{/* Commitments */}
    {home.why.map((item, index) => (
  • {String(index + 1).padStart(2, "0")}

    {item.title}

    {item.body}

  • ))}
{/* Services overview */}
    {services.items.map((service, index) => (
  • {String(index + 1).padStart(2, "0")}

    {service.title}

  • ))}
{home.servicesCtaAll} →
{/* Method strip */}

{home.processTitle}

{home.processBody}

{home.processLink}
{/* Call to action */}

{home.ctaTitle}

{home.ctaBody}

{home.ctaButton}
); }